//
//  JobCell.m
//  陶瓷
//
//  Created by 郭天龙 on 15/7/25.
//  Copyright (c) 2015年 王戈. All rights reserved.
//

#import "JobCell.h"
#import "UIImageView+WebCache.h"
#import "TCBaseTool.h"

@interface JobCell ()

@property (nonatomic, weak) IBOutlet UILabel *label1;
@property (nonatomic, weak) IBOutlet UILabel *label2;
@property (nonatomic, weak) IBOutlet UILabel *label3;
@property (nonatomic, weak) IBOutlet UILabel *time;
@property (nonatomic, weak) IBOutlet UIImageView *titleImageView;

@end

@implementation JobCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(NSDictionary *)dic
{
    [self.imageView sd_setImageWithURL:[dic objectForKey:@"ImageUrl"] placeholderImage:nil];
    self.label1.text = [dic objectForKey:@"Title"];
    self.label2.text = [NSString stringWithFormat:@"%@-%@",[dic objectForKey:@"Address"],[dic objectForKey:@"CompanyName"] ];
    self.label3.text = [dic objectForKey:@"Wage"];
    
    self.time.text = [TCBaseTool calculateTime:[dic objectForKey:@"CreateTime"]];
}



@end
